package com.ihg.hiex.admin.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.ihg.hiex.admin.entity.security.Login;
import com.ihg.hiex.admin.web.resolver.Secure;

/**
 * 
 * @author dan
 *
 */
@Controller
@RequestMapping("/ever-green")
public class EverGreenController {
    
    /**
     * 
     * @return
     */
    @RequestMapping(path = "/index", method = RequestMethod.GET)
    public ModelAndView index() {
        
        ModelAndView modelAndView = new ModelAndView("ever-green/ever-green-index");
        
        return modelAndView;
        
    }
    
    /**
     * 
     * @return
     */
    @RequestMapping(path = "/introduction", method = RequestMethod.GET)
    public ModelAndView introduction () {
        
        ModelAndView modelAndView = new ModelAndView("ever-green/ever-green-introduction");
        
        return modelAndView;
    }
    
    /**
     * 
     * @return
     */
    @RequestMapping(path = "/brand", method = RequestMethod.GET)
    public ModelAndView brand() {
        
        ModelAndView modelAndView = new ModelAndView("ever-green/ever-green-brand");
        
        return modelAndView;
    }
    
    /**
     * 
     * @return
     */
    @RequestMapping(path = "/market-competition", method = RequestMethod.GET)
    public ModelAndView marketCompetition() {
        
        ModelAndView modelAndView = new ModelAndView("ever-green/ever-green-market-competition");
        
        return modelAndView;
    }
    
    /**
     * 
     * @return
     */
    @RequestMapping(path = "/team", method = RequestMethod.GET)
    public ModelAndView team() {
        
        ModelAndView modelAndView = new ModelAndView("ever-green/ever-green-team");
        
        return modelAndView;
    }
    
    /**
     * 
     * @param login
     * @return
     */
    @RequestMapping(path = "/report", method = RequestMethod.GET)
    public ModelAndView report(@Secure Login login) {
        
        ModelAndView modelAndView = new ModelAndView("ever-green/ever-green-report");
        
        return modelAndView;
        
    }
    
    /**
     * 
     * @return
     */
    @RequestMapping(path = "/pl-report", method = RequestMethod.GET)
    public ModelAndView plReport() {
        
        ModelAndView modelAndView = new ModelAndView("ever-green/ever-green-pl-report");
        
        return modelAndView;
    }
    
    /**
     * 
     * @return
     */
    @RequestMapping(path = "/guest-heart-beat-report", method = RequestMethod.GET)
    public ModelAndView guestHeartBeat() {
        
        ModelAndView modelAndView = new ModelAndView("ever-green/ever-green-guest-heart-beat-report");
        
        return modelAndView;
        
    }
    
}
